package cc.mrbird.febs.music.dao;

import cc.mrbird.febs.music.domain.MusicMoodBean;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface MusicMoodMapper  extends BaseMapper<MusicMoodBean> {

    @Select("select count(1) from music_mood_collect " +
            "where user_id=#{musicMood.userId} and music_id=#{musicMood.musicId}")
    int countMusicMood(@Param("musicMood") MusicMoodBean musicMoodBean);

}
